package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 门岗登录信息
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_car_park_doorpost_login")
public class CarParkDoorpostLogin extends Model<CarParkDoorpostLogin> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "lid", type = IdType.ASSIGN_ID)
    private String lid;
    /**
     * 操作时间
     */
    @TableField("operator_time")
    private LocalDateTime operatorTime;
    /**
     * 门岗ID
     */
    @TableField("did")
    private String did;
    /**
     * 操作人
     */
    @TableField("operator")
    private String operator;
    /**
     * 机构ID
     */
    @TableField("org_id")
    private String orgId;
    /**
     * 停车场
     */
    @TableField("park_id")
    private String parkId;
    /**
     * 登录门岗端状态
     */
    @TableField("login_doorman_status")
    private String loginDoormanStatus;

    public void freeData() {
        this.lid = null;
        this.operatorTime = null;
        this.did = null;
        this.operator = null;
        this.orgId = null;
        this.parkId = null;
        this.loginDoormanStatus = null;
    }

}
